﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Fly ajax helper demo</title>
    <style type="text/css">
        textarea
        {
            width: 90%;
            height: 150px;
        }
    </style>
    <script src="../../../fly/fly.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("button").click(function () {
                $.ajax({ form: $("form")[0],
                    url:'data.txt',
                    onSuccess: function (d) {
                        alert(d)
                    }
                })
                return false;
            })
        });
    </script>
</head>
<body>
    <div>
        Fly ajax helper demo</div>
    <form action="default.aspx" method="get">
        <input type="type" name="input" value="123" />
    </form>
    <button>提交</button>
</body>
</html>
